<?
$seccion=5; 
include 'head.php';
?> 

<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">

//Cargamos Organigrama
  google.load('visualization', '1', {packages:['orgchart']});
  google.load("visualization", "1", {packages:["corechart"]});
  google.setOnLoadCallback(drawChart);

  function drawChart() {
    var data = new google.visualization.DataTable();
    data.addColumn('string', 'Name');
    data.addColumn('string', 'Manager');
    data.addColumn('string', 'ToolTip');
    data.addRows([
      //[{v:'Finanzas', f:'Mike<div style="color:red; font-style:italic">President</div>'}, '', 'The President'],
      [{v:'Gerencia', f:'Gerencia'}, '', ''],
      ['Finanzas', 'Gerencia', ''],
      [{v:'Ventas', f:'Ventas'}, 'Gerencia', ''],
      ['Marketing', 'Ventas', ''],
      ['Comunicación', 'Ventas', ''],
      ['RRHH', 'Gerencia', ''],
      ['Operaciones', 'Gerencia', '']

    ]);
    var chart = new google.visualization.OrgChart(document.getElementById('chart_div'));
    chart.draw(data, {allowHtml:true,size:'large',allowCollapse:true});
  }

//Graficos de torta
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
          ['Task', 'Hours per Day'],
          ['Work',     11],
          ['Eat',      2],
          ['Commute',  2],
          ['Watch TV', 2],
          ['Sleep',    7]
        ]);

        var options = {
          title: 'My Daily Activities',
          pieHole: 0.4,
        };

        var chart = new google.visualization.PieChart(document.getElementById('donutchart'));
        chart.draw(data, options);
      }
</script>

<br>
<div class="row">
	<div class="col-md-6">
		Planificación de RRHH 2012<br><br>
	</div>
	<div class="col-md-6" >
		<div id="chart_div"></div> 
	</div>
</div>
<div class="row">
	<div class="col-md-6">
	   <div id="donutchart" style="width: 500px; height: 500px;"></div>
  	</div>	
</div>



<? include 'footer.php';?>



